﻿package net.wangit.framework.validation;

import net.wangit.framework.exception.NestableRuntimeException;

public class ValidationException extends NestableRuntimeException {

	private static final long serialVersionUID = 1L;
	private String prop;

	public ValidationException(String s) {
		super(s);
	}

	public ValidationException(String path, String prop) {
		super((new StringBuilder("configuration error: please check ")).append(
				prop).append(" in ").append(path).toString());
		this.prop = prop;
	}

	public ValidationException(String s, Throwable cause) {
		super(s, cause);
	}

	public String getProp() {
		return prop;
	}
}
